package thread;

public class ThreadDemo2 {
    public static void main(String[] args) {
        new Thread(new MyRunnable1()).start();
        new Thread(new MyRunnable2()).start();
    }
}

class MyRunnable1 implements Runnable{
    public void run() {
        for (int i = 0; i < 1000; ++i) {
            System.out.println("哈哈哈哈哈哈哈哈哈哈");
        }
    }
}

class MyRunnable2 implements Runnable{
    public void run() {
        for (int i = 0; i < 1000; ++i) {
            System.out.println("啦啦啦啦啦");
        }
    }
}